package org.elanfox.intellicommunity.msg.dto;

import lombok.Data;
import org.elanfox.intellicommunity.msg.ienum.TagTypEnum;

import java.io.Serializable;

/**
 * @author allan
 * @version 1.0.0
 * @date 2019/12/20
 */
@Data
public class RawLocationMsgDTO implements Serializable {
    private static final long serialVersionUID = 3062352389169501889L;

    /**
     * 阅读器地址
     */
    private long stationId;
    /**
     * 标签id
     */
    private long cardId;
    /**
     * 旧触发器id
     */
    private long locatorId;
    /**
     * 报警标志
     */
    private boolean alarmIndex;
    /**
     * 电量标志
     */
    private boolean electricIndex;
    /**
     * 标签类型
     */
    private TagTypEnum tagTyp;

    public RawLocationMsgDTO(RawMsgDTO rawMsgDTO) {
        this.stationId = rawMsgDTO.getDeviceAddr();
//        this.cardId = rawMsgDTO.getTagId();
//        this.locatorId = rawMsgDTO.getNewTriggerId();
//        this.alarmIndex = rawMsgDTO.isDismantleAlarm();
//        this.tagTyp = rawMsgDTO.getTagType();
    }
}
